<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>酸奶小妹——百度地图API学习</title>
    <style type="text/css">
        html{height:100%}
        body{height:100%;margin:0px;padding:0px}
        #milkMap{height:400px;width:600px;border:1px solid blue;}
    </style>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.1&services=false"></script>
</head>
<body>
    <div id="milkMap"></div>
</body>
<script type="text/javascript">
    var map = new BMap.Map("milkMap");          // 创建地图实例
    var point = new BMap.Point(116.346982712, 39.889622864);  // 创建点坐标
    map.centerAndZoom(point, 18);                 // 初始化地图，设置中心点坐标和地图级别
    
  
    map.setCurrentCity("dsvdfb");  //设置当前城市
    
</script>
</html>